package chai.ning.string;

import java.nio.charset.Charset;

public class StringTest4 {

	public static void main(String[] args) {
		
		final Charset gbkCharset = Charset.forName( "GBK" );
		final Charset utf8Charset = Charset.forName( "UTF-8" );
		final Charset utf16Charset = Charset.forName( "UTF-16LE" );
		
		final byte[] bytes = {60,-115,-128,123,85,83};
		
		String s = new String( bytes , gbkCharset );
		System.out.println( s );
		
		String x = new String( bytes , utf8Charset );
		System.out.println( x );
		
		String p = new String( bytes , utf16Charset );
		System.out.println( p );
		
	}

}
